﻿#define _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
#include<math.h>

int main()
{
    double a = 0;
    double b = 0;
    double c = 0;
    //输入
    scanf("%lf %lf %lf", &a, &b, &c);
    //计算
    double circumference = (a + b + c);//周长
    double p = circumference / 2;
    double area = sqrt(p * (p - a) * (p - b) * (p - c));
    //输出
    printf("circumference=%.2lf area=%.2lf", circumference, area);
    return 0;
}

int main()
{
    double r = 0.0;
    double v = 0.0;
    double pi = 3.1415926;
    //输入
    scanf("%lf", &r);
    //计算
    v = 4 / 3.0 * pi * r * r * r;
    printf("%.3lf", v);
    return 0;
}

int main()
{
    int s1 = 0;
    int s2 = 0;
    int s3 = 0;

    scanf("%d %d %d", &s1, &s2, &s3);

    printf("score1=%d,score2=%d,score3=%d\n", s1, s2, s3);

    return 0;
}

int main()
{
    int score[3] = { 0 };
    int i = 0;

    for (i = 0; i < 3; i++)
    {
        scanf("%d", &score[i]);
    }

    printf("score1=%d,score2=%d,score3=%d\n", score[0], score[1], score[2]);

    return 0;
}
int main()
{
    int i = 0;
    for (i = 10000; i <= 99999; i++) //取出五位数
    {
        //判断i是否为Lily Number
        int j = 0;
        int sum = 0;
        for (j = 10; j <= 10000; j *= 10)
        {
            sum += (i / j) * (i % j);
        }
        if (sum == i)
            printf("%d ", i);
    }
    return 0;
}

int main()
{
    int a = 0;
    int b = 0;
    //输入
    scanf("%d %d", &a, &b);
    //计算
    int sum = (a + b) % 100;//这里也可以写成a%100+b%100
    //输出
    printf("%d", sum);

    return 0;

}
int main()
{
    double a = 0;
    scanf("%lf", &a);
    int  n = (int)a;
    printf("%d\n", n % 10);

    return 0;
}

int main()
{
    int a = 0;
    scanf("%d", &a);
    printf("%d\n", a % 10);

    return 0;
}
int main()
{
    int age = 0;
    //输入
    scanf("%d", &age);
    //计算
    long long time = 3.156 * pow(10, 7) * age;
    //或者这样写long long time=3.156e7*age;
    //输出
    printf("%lld", time);
    return 0;
}
int main()
{
    //输入
    int seconds = 0;
    int h = 0;
    int m = 0;
    int s = 0;
    scanf("%d", &seconds);
    //计算
    h = seconds / 3600;
    m = seconds % 3600 / 60;
    s = seconds % 3600 % 60;
    //输出
    printf("%d %d %d\n", h, m, s);

    return 0;
}

int main()
{
    double arr[3] = { 0 };//三科成绩
    //输入
    scanf("%lf %lf %lf", &arr[0], &arr[1], &arr[2]);
    //计算
    double sum = arr[0] + arr[1] + arr[2];
    double avg = sum / 3.0;
    //输出
    printf("%.2lf %.2lf", sum, avg);
    return 0;
}
   
int main()
{
    double score = 0.0;
    double sum = 0.0;
    //输入并计算
    int i = 0;
    for (i = 0; i < 3; i++)
    {
        scanf("%lf", &score);
        sum += score;
    }
    //输出
    printf("%.2lf %.2lf", sum, sum / 3);
    return 0;
}

int main()
{
    int m = 0;//给的酸奶瓶数
    int n = 0;//喝一瓶所用的时间
    int h = 0;//总共时间

    while ((scanf("%d %d %d", &n, &h, &m) != EOF))
    {
        if (m % h)
            printf("%d", n - m / h - 1);
        else
            printf("%d", n - m / h);
    }
    return 0;
}

int main()
{
    float m, n, h = 0;
    scanf("%f %f %f", &n, &h, &m);
    printf("%d", (int)(n - m / h));
    return 0;
}
​